package com.jiacl.service;

import com.jiacl.entity.JiaclSurname;
import com.jiacl.entity.core.Result;
import com.jiacl.form.SurnameForm;

/**
 * Created by XiaoWei on 2017/9/2.
 */
public interface SurnameService {

    /**
     * 根据ID获取姓氏
     * @param id
     * @return
     */
    public Result selectJiaclSurname(Integer id);

    /**
     * 分页查询所有姓氏
     * @param surnameForm
     * @return
     */
    public Result selectSurnameAll(SurnameForm surnameForm);

    /**
     * 查询所有姓氏
     * @param
     * @return
     */
    public Result selectSurnameAll();

    /**
     * 更新
     * @param
     * @return
     */
    public Result update(JiaclSurname jiaclSurname);

    /**
     * 按首字母查询
     * @param
     * @return
     */
    public Result selectSurnameByPhonetic(String phonetic);

    /**
     * 按姓氏查询
     * @param
     * @return
     */
    public Result selectSurnameBySimplified(String surname);

}
